<h1>Shifts List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Nombre Turno</th>
      <th>Horas</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($shifts as $shift): ?>
    <tr>
      <td><a href="<?php echo url_for('shifts/show?id='.$shift->getId()) ?>"><?php echo $shift->getId() ?></a></td>
      <td><?php echo $shift->getName() ?></td>
      <td><?php echo $shift->getHours() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('shifts/new') ?>">New</a>
